package com.example.demo02.exception;

import java.security.spec.X509EncodedKeySpec;
import java.util.function.Supplier;

public class ServiceAssert {

    public static<X extends Throwable> void isTrue(boolean condition, Supplier<? extends X> supplier) throws X{
        if(!condition){
            supplier.get();
        }
    }
}
